package com.spring.sperapc.web.service.impl;

import com.spring.sperapc.web.dao.AppMapper;
import com.spring.sperapc.web.model.Exam;
import com.spring.sperapc.web.service.AppService;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by wojunyu on 2015/7/25.
 */
@Service
public class AppServiceImpl implements AppService {
    @Resource
    private AppMapper appMapper;

    /**
     * 出题接口
     * @param age_group
     * @param rule_id
     * @param exam_type
     * @return
     */
    @Override
    public List<Exam> getExam(String age_group,String rule_id,String exam_type) {
        Map m = new HashMap();
        m.put("age_group",age_group);
        return appMapper.getExam(m);
    }

}
